package com.bing.bean;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2016/11/20.
 */
public class ZTree {

    private String name;
    private List<Child> children =new ArrayList<>();

    public ZTree(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<Child> getChildren() {
        return children;
    }

    public void setChildren(List<Child> children) {
        this.children = children;
    }

    public void addChild(String id,String name,String target,String url){
        children.add(new Child(id,name,target,url));
    }

    public class Child {
        private String id;
        private String name;
        private String target;
        private String url;

        public Child(String id, String name, String target, String url) {
            this.id = id;
            this.name = name;
            this.target = target;
            this.url = url;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getTarget() {
            return target;
        }

        public void setTarget(String target) {
            this.target = target;
        }

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }
    }
}
